.thredded--topics--topic {
  margin-bottom: $thredded-base-spacing;
  position: relative;

  @media (max-width: $thredded-grid-container-max-width) {
    margin-left: 3rem;
  }
}

.thredded--topics--title {
  @extend %thredded--heading;
  display: inline;
  font-size: 1.125rem; // 18px
  line-height: 1.5;

  a {
    @extend %thredded--link;
    color: $thredded-text-color;
    display: inline;

    &:hover {
      color: $thredded-action-color;
    }
  }
}

.thredded--topics--categories {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  line-height: 1rem;

  li {
    font-size: .5rem;
    display: inline-block;
    color: $thredded-text-color;
    background-color: lighten($thredded-text-color, 55%);
    box-shadow: inset 0 -1px 0 lighten($thredded-text-color, 40%);
    padding: 1px 6px;
    border-radius: 2px;
    text-transform: lowercase;
    letter-spacing: 1px;
    vertical-align: bottom;
  }
}

.thredded--topics--started-by,
.thredded--topics--updated-by {
  color: $thredded-secondary-text-color;
  font-size: $thredded-font-size-small;
  font-style: normal;

  a {
    @extend %thredded--link;
    color: lighten($thredded-text-color, 20%);

    &:hover {

      color: $thredded-action-color;
    }
  }

  abbr {
    &::after  {
      content: ' by ';
    }
  }
}

.thredded--topics--updated-by {
  margin-right: $thredded-small-spacing;

  abbr {
    &::before {
      content: 'updated ';
    }
  }
}

.thredded--topics--started-by {
  display: none;

  abbr {
    &::before {
      content: 'started ';
    }
  }
}

.thredded--topics--moderation-state {
  padding: 0.3em 0.5em;
  font-size: $thredded-font-size-small;
  font-style: normal;
}

.thredded--topics--posts-count {
  border-radius: 50%;
  display: inline-block;
  font-weight: 900;
  font-size: 0.8rem;
  height: 2rem;
  left: -3rem;
  line-height: 2rem;
  margin-right: $thredded-base-spacing;
  position: absolute;
  text-align: center;
  top: 0;
  width: 2rem;
  transition: background 0.1s linear, color 0.1s linear;
}

.thredded--topic-read {
  > .thredded--topics--title a {
    font-weight: lighter;
  }
  > .thredded--topics--posts-count {
    background: $thredded-badge-inactive-background;
    color: $thredded-badge-inactive-color;
  }
}

.thredded--topic-unread {
  > .thredded--topics--title a {
    font-weight: bold;
  }
  > .thredded--topics--posts-count {
    background: $thredded-badge-active-background;
    color: $thredded-badge-active-color;
  }
}

.thredded--topic-following {
  .thredded--topics--follow-icon {
    @extend %thredded--following-icon;
  }
}

.thredded--topic-notfollowing {
  .thredded--topics--follow-icon {
    @extend %thredded--not-following-icon;
  }
}
